NXP Semiconductors /LPC176x5x /USB /STCTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as STCTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0PORT_FUNC 0TMR_SCALE 0 (TMR_MODE)TMR_MODE 0 (TMR_EN)TMR_EN 0 (TMR_RST)TMR_RST 0 (RESERVED)RESERVED 0 (B_HNP_TRACK)B_HNP_TRACK 0 (A_HNP_TRACK)A_HNP_TRACK 0 (PU_REMOVED)PU_REMOVED 0 (RESERVED)RESERVED0TMR_CNT

Description

OTG Status and Control and USB port select

Fields

PORT_FUNC

Controls connection of USB functions (see Figure 51). Bit 0 is set or cleared by hardware when B_HNP_TRACK or A_HNP_TRACK is set and HNP succeeds. See Section 14.9. 00: U1 = device (OTG), U2 = host 01: U1 = host (OTG), U2 = host 10: Reserved 11: U1 = host, U2 = device In a device-only configuration, the following values are allowed: 00: U1 = device. The USB device controller signals are mapped to the U1 port: USB_CONNECT1, USB_UP_LED1, USB_D+1, USB_D-1. 11: U2 = device. The USB device controller signals are mapped to the U2 port: USB_CONNECT2, USB_UP_LED2, USB_D+2, USB_D-2.

TMR_SCALE

Timer scale selection. This field determines the duration of each timer count. 00: 10 ms (100 KHz) 01: 100 ms (10 KHz) 10: 1000 ms (1 KHz) 11: Reserved

TMR_MODE

Timer mode selection. 0: monoshot 1: free running

TMR_EN

Timer enable. When set, TMR_CNT increments. When cleared, TMR_CNT is reset to 0.

TMR_RST

Timer reset. Writing one to this bit resets TMR_CNT to 0. This provides a single bit control for the software to restart the timer when the timer is enabled.

RESERVED

Reserved. Read value is undefined, only zero should be written.

B_HNP_TRACK

Enable HNP tracking for B-device (peripheral), see Section 14.9. Hardware clears this bit when HNP_SUCCESS or HNP_FAILURE is set.

A_HNP_TRACK

Enable HNP tracking for A-device (host), see Section 14.9. Hardware clears this bit when HNP_SUCCESS or HNP_FAILURE is set.

PU_REMOVED

When the B-device changes its role from peripheral to host, software sets this bit when it removes the D+ pull-up, see Section 14.9. Hardware clears this bit when HNP_SUCCESS or HNP_FAILURE is set.

RESERVED

Reserved. Read value is undefined, only zero should be written.

TMR_CNT

Current timer count value.

Links

()